import {fetchUserRepositories} from '../api/repositories';
import {ref,watch,onMounted} from 'vue';
export default function usersData(){
    const users = ref([]);
    const useUserItems = async ()=>{
        users.value = await fetchUserRepositories();
    }
    onMounted(useUserItems);
    return{
        users,
        useUserItems
    }
}